

<script setup>
import {ref, reactive, computed} from 'vue'

const isActive = ref(true)
const error = ref(null)
 
const classObject = computed(() => ({
    // active: true,
    mydiv: isActive
}))

</script>

<template>
    <div :class="classObject">33</div>
</template>

<style scss scoped>
    .mydiv{
        background-color: red;
    }
</style>